package me.iholo.service;

import me.iholo.domain.User;

/**
 * Created by iholome on 2017/6/17 0017.
 */
public interface UserService {

    /**
     * 用户注册
     *
     * @param user the user
     * @return the boolean
     */
    boolean signup(User user);

    /**
     * 用户登录Login boolean.
     *
     * @param user the user
     * @return the boolean
     */
    boolean login(User user);


    /**
     * 获取用户信息 by email.
     *
     * @param email the email
     * @return the by email
     */
    User getByEmail(String email);

    /**
     * 获取用户信息 by id.
     *
     * @param id the id
     * @return the by id
     */
    User getById(Integer id);




}
